package com.aos.erp.message.rest;

//@Slf4j
//@Api(tags = {"UI接口：消息记录接口"})
//@RestController
//@RequestMapping("/api/message/record")
//public class RestMessageRecordController {
//
//    @Autowired
//    MessageRecordService messageRecordService;
//
//    @ApiOperation(value = "分页查询消息记录")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "pageIndex", value = "当前页", required = true, dataType = "Integer", defaultValue = "1", paramType = "Query"),
//            @ApiImplicitParam(name = "pageSize", value = "每页大小", required = true, dataType = "Integer", defaultValue = "20", paramType = "Query"),
//            @ApiImplicitParam(name = "mrContent", value = "推送内容", dataType = "String", paramType = "Query"),
//            @ApiImplicitParam(name = "pushType", value = "推送方式(app:APP；wx_public:微信公众号；wx_applet:微信小程序；sms_timely:及时短信)", dataType = "PushType", paramType = "Query"),
//            @ApiImplicitParam(name = "pushStatus", value = "推送状态(push_no为未发送；push_yes为已发送；push_stop为暂停发送)", dataType = "PushStatus", paramType = "Query"),
//            @ApiImplicitParam(name = "fromTime", value = "开始时间", dataType = "String", paramType = "Query"),
//            @ApiImplicitParam(name = "toTime", value = "截止时间", dataType = "String", paramType = "Query")
//    })
//    @GetMapping("/listPushRecord")
//    public ResultEntity<PageBean<MessageRecordItemDTO>> listRecord(MRConditionVo params) {
//        return ResultEntity.success(messageRecordService.findByPage(params));
//    }
//
//    @ApiOperation(value = "分页查询待发消息记录")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "pageIndex", value = "当前页", required = true, dataType = "Integer", defaultValue = "1", paramType = "Query"),
//            @ApiImplicitParam(name = "pageSize", value = "每页大小", required = true, dataType = "Integer", defaultValue = "20", paramType = "Query"),
//            @ApiImplicitParam(name = "mrContent", value = "推送内容", dataType = "String", paramType = "Query"),
//            @ApiImplicitParam(name = "pushType", value = "推送方式(app:APP；wx_public:微信公众号；wx_applet:微信小程序；sms_timely:及时短信)", dataType = "PushType", paramType = "Query"),
//            @ApiImplicitParam(name = "fromTime", value = "开始时间", dataType = "String", paramType = "Query"),
//            @ApiImplicitParam(name = "toTime", value = "截止时间", dataType = "String", paramType = "Query")
//    })
//    @GetMapping("/listWaitPushRecord")
//    public ResultEntity<PageBean<MessageRecordWaitPushItemDTO>> listWaitPushRecord(MRConditionVo params) {
//        return ResultEntity.success(messageRecordService.findWaitSendByPage(params));
//    }
//
//    @ApiOperation(value = "查看推送消息详情")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "dataId", value = "消息记录ID", required = true, dataType = "Long", paramType = "Query")
//    })
//    @GetMapping("/detail")
//    public ResultEntity<MessageRecordDTO> detailNotice(Long dataId){
//        return ResultEntity.success(messageRecordService.getRecordDetail(dataId));
//    }
//
//    @ApiOperation(value = "删除消息记录")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "ids", value = "记录ID：id1,id2,id3", required = true, dataType = "Long", paramType = "Query")
//    })
//    @GetMapping("/delete")
//    public ResultEntity deleteTemplate(String ids) throws Exception{
//        messageRecordService.deleteRecord(ids);
//        return ResultEntity.success("删除成功");
//    }
//}
